import RexUIPlugin from 'phaser3-rex-plugins/templates/ui/ui-plugin.js';
import { GameScene } from './GameScene';

/**
 * 主配置
 * @Author: lzmxqh  
 * @Date: 2022-09-27 10:42:28  
 * @Last Modified by: lzmxqh
 * @Last Modified time: 2022-10-17 16:07:45
 */
export const MainConfig: Phaser.Types.Core.GameConfig = {
    title: 'CatchCat',
    type: Phaser.AUTO,
    width: 1600,
    height: 900,
    pixelArt: true,
    scale: {
        mode: Phaser.Scale.HEIGHT_CONTROLS_WIDTH,
        zoom: Phaser.Scale.NO_ZOOM
    },
    parent: "catch_cat",
    canvasStyle: "width: 100%; height: 100%;",
    physics: {
        default: 'arcade'
    },
    plugins: {
        scene: [{
            key: 'rexUI',
            plugin: RexUIPlugin,
            mapping: 'rexUI'
        }]
    },
    backgroundColor: '#E6E6E6',
    scene: [GameScene]
};
